<%--
  Created by IntelliJ IDEA.
  User: CDLX
  Date: 2021/12/6
  Time: 下午 05:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body style="height: 100%; margin: 0">


<div id="container" style="height: 100%"></div>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/echarts.min.js"></script>


<script type="text/javascript">
    var dom = document.getElementById("container");
    var myChart = echarts.init(dom);
    var app = {};

    var option;

    // $.post("/car/stat/customerAddreeStat",function (r) {
    option = {
        xAxis: {
            type: 'category',
            data: ['张三', '佘振贵', '王五', '李四']
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                data: [1000, 2000, 1500, 800],
                type: 'bar',
                showBackground: true,
                backgroundStyle: {
                    color: 'rgba(180, 180, 180, 0.2)'
                }
            }
        ]
    };

    if (option && typeof option === 'object') {
        myChart.setOption(option);
    }
    // })






</script>
</body >
</html>
